﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.WindowsServerSolutions.Wizards;

namespace TV4Home.Server.Vail.AddIn.Wizards.UninstallTVServer
{
    public partial class WPUninstallStartControl : WizardPage
    {
        public WPUninstallStartControl()
        {
            InitializeComponent();
        }

        public enum UninstallationType
        {
            Standard,
            Complete
        }

        public event EventHandler UninstallationTypeButtonClicked;

        public UninstallationType SelectedUninstallationType
        {
            get;
            private set;
        }

        private void InvokeUninstallationTypeButtonClicked()
        {
            if (UninstallationTypeButtonClicked != null)
                UninstallationTypeButtonClicked.Invoke(this, EventArgs.Empty);
        }

        private void rbStandardUninstall_Click(object sender, EventArgs e)
        {
            this.SelectedUninstallationType = UninstallationType.Standard;

            InvokeUninstallationTypeButtonClicked();
        }

        private void rbCompleteUninstall_Click(object sender, EventArgs e)
        {
            this.SelectedUninstallationType = UninstallationType.Complete;

            InvokeUninstallationTypeButtonClicked();
        }
    }
}
